package com.group3.pojo.result;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.group3.domain.File;
import com.group3.domain.Work;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @ClassName WorkDetail
 * @Author WenhaoChen
 * @Date 2021/7/3 16:58
 **/
@Data
public class WorkDetail {
    private Integer workId;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date releaseTime;

    private String workTheme;

    private String workContent;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date completionTime;

    private String lessonName;

    private Integer teacherId;

    private Integer type;

    private String teacherName = "";

    private List<File> files = null;
}
